<include file="Public/header" />
<title>管理员列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 出库管理 <span class="c-gray en">&gt;</span> 波次单 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20" style="margin-top:-20px;">
	<div class="cl pd-5 bg-1 bk-gray mt-20"> 
		<form class="formleft" name="" id="" action="__URL__/printorder/" method="get">
			<input class="input-text" style="width:200px;float:left;margin:0 5px 0 0;" type="text" value="<{$_GET['order_no']}>" placeholder="订单编号" name="order_no">
			<input class="input-text" style="width:200px;float:left;margin:0 5px 0 0;" type="text" value="<{$_GET['mailNo']}>" placeholder="电子面单号" name="mailNo">
			<input class="input-text" style="width:200px;float:left;margin:0 5px 0 0;" type="text" value="<{$_GET['receiveMan']}>" placeholder="收件人姓名" name="receiveMan">
			日期范围:
			<input type="input-text" name="start_time" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" id="start_time" class="input-text Wdate" style="width:160px;" value="<{:date('Y-m-d',time())}>"  placeholder="开始时间"> -
			<input type="input-text" name="end_time" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" id="end_time" class="input-text Wdate" style="width:160px;"  value="<{:date('Y-m-d',time()+86400)}>"    placeholder="结束时间">
			<select name="print_status" class="input-text" style="width:200px;height:30px;float:left;margin:0 5px 0 0;">
				<option value="0">未打印</option>
                <option value="1">已打印</option>
			</select>
			<br>
			<input class="input-text" style="width:200px;float:left;margin:0 5px 0 0;" type="text" value="<{$_GET['goods_name']}>" placeholder="商品名称" name="goods_name">
			<input class="input-text" style="width:100px;float:left;margin:0 5px 0 0;" type="text" value="<{$_GET['nums']}>" placeholder="数量" name="nums">
			<select name="check_cate" class="input-text" style="width:200px;height:30px;float:left;margin:0 5px 0 0;">
				<option value="0">匹配规则</option>
                <option value="1">完全匹配（商品唯一并匹配商品数量）</option>
				<option value="2">商品唯一但不匹配此商品数量</option>
				<option value="3">包含此商品并且匹配此商品数量</option>
                <option value="4">包含此商品但不匹配此商品数量</option>
				<option value="5">不包含此商品</option>
			</select>
			<button type="submit" class="btn btn-success"><i class="icon-plus"></i> 查询</button>
			<span class="dropDown"> 
				<a class="dropDown_A btn btn-success" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">预览面单</a>
				<ul class="dropDown-menu menu radius box-shadow">
					<li><a class="viewprinter" attr_name="BSE" attr_view="1" href="javascript:void(0);">百世英文面单</a></li>
					<li><a class="viewprinter" attr_name="BS" attr_view="1"  href="javascript:void(0);">百世中文面单</a></li>
					<li><a class="viewprinter" attr_name="SF" attr_view="1"  href="javascript:void(0);">顺丰面单</a></li>
					<li><a class="viewprinter" attr_name="ZTO" attr_view="1" href="javascript:void(0);">中通面单</a></li>
				</ul>
			</span>
			<span class="dropDown"> 
				<a class="dropDown_A btn btn-success" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">立即打印面单</a>
				<ul class="dropDown-menu menu radius box-shadow">
					<li><a class="viewprinter" attr_name="BSE"  href="javascript:void(0);">百世英文面单</a></li>
					<li><a class="viewprinter" attr_name="BS"  href="javascript:void(0);">百世中文面单</a></li>
					<li><a class="viewprinter" attr_name="SF"  href="javascript:void(0);">顺丰面单</a></li>
					<li><a class="viewprinter" attr_name="ZTO"  href="javascript:void(0);">中通面单</a></li>
				</ul>
			</span>
			<button type="button"  onclick="exportExcel()" class="btn btn-success"><i class="icon-plus"></i> 导出EXCEL</button>
		</form>
		<span class="r">共有数据：<strong><{$count}></strong> 条</span> 
    </div>
	
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr>
				<th scope="col" colspan="15">订单列表</th>
			</tr>
			<tr class="text-c">
				<th width="25"><input type="checkbox" name="" value=""></th>
				<th>序号</th>
				<th width="">订单编号</th>
				<th width="">电子面单号</th>
				<th width="">收件人姓名</th>
				<th width="">身份证号</th>
				<th width="">收件人电话</th>
				<th width="">收件人地址</th>
				<th width="">状态</th>
				<!-- <th width="">推送时间</th> -->
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr class="text-c">
				<td><input  class="uids" type="checkbox" value="<{$vo.id}>" name="ids[]"></td>
				<td><{$i}></td>
				<td><{$vo.order_no}></td>
				<td><{$vo.logistics_no}></td>
				<td><{$vo.user_name}></td>
				<td><{$vo.user_idcard}></td>
				<td><{$vo.user_phone}></td>
				<td><{$vo.province}><{$vo.city}><{$vo.area}><{$vo.user_address}></td>
				<td>
				<if condition="$vo.flag eq 1">
					<img src="__PUBLIC__/img/flag/flag_green.png">
				</if>
				<if condition="$vo.flag eq 2">
					<img src="__PUBLIC__/img/flag/flag_yellow.png">
				</if>
				<if condition="$vo.flag eq 3">
					<img src="__PUBLIC__/img/flag/flag_red.png">
				</if>
				</td>
				<!-- <td><{$vo.add_time|date="Y-m-d",###}></td> -->
			</tr>
			</volist>
		</tbody>
	</table>
	<div class="page mt" style="text-align:right"><{$page}></div>
</div>
<script type="text/javascript" src="__PUBLIC__/js/LodopFuncs.js"></script>
<script type="text/javascript">
	function exportExcel(){
		var url="<{:U('Outbound/printorder',array('excel'=>1))}>";
		window.location.href=url;
	}
	var ajax_printbatSFUrl="<{:U('Outbound/ajax_printbatSF')}>";//预览/立即打印
	var ajax_printbatBSUrl="<{:U('Outbound/ajax_printbatBS')}>";//预览/立即打印
	var ajax_printbatZTOUrl="<{:U('Outbound/ajax_printbatZTO')}>";//预览/立即打印
	var ajax_printbatBSEUrl="<{:U('Outbound/ajax_printbatBSE')}>";//预览/立即打印
    $(function(){
        $(".viewprinter").click(function(){
			var attr_view=$(this).attr("attr_view");
			var attr_name=$(this).attr("attr_name");
			var option = $(".uids");
			var checked_counts=0;
			var check_val=[];
            for(var i=0;i<option.length;i++){
				if(option[i].checked){
					checked_counts++;
					check_val.push(option[i].value);
				}
			}
			if(check_val==''){
				layer.msg('请选择订单');
				return false;
			}
			if(attr_name=="BSE"){
				if(attr_view=="1"){
					printBarBSE(check_val);
				}else{
					goprintBarBSE(check_val);
				}
			}
			if(attr_name=="BS"){
				if(attr_view=="1"){
					printBarBS(check_val);
				}else{
					goprintBarBS(check_val);
				}
			}
			if(attr_name=="ZTO"){
				if(attr_view=="1"){
					printBarZTO(check_val);
				}else{
					goprintBarZTO(check_val);
				}
			}
			if(attr_name=="SF"){
				if(attr_view=="1"){
					printBarSF(check_val);
				}else{
					goprint(check_val);
				}
			}
			
        });
    })
    function printBarBSE(ids){//预览百世英文面单
		var LODOP;
		LODOP=getLodop();
					$.post(ajax_printbatBSEUrl,{id:ids,preview:1},function(result){
						if (!result.status){
							layer.msg(result.message);
						}else{
							// LODOP.ADD_PRINT_HTM(0,0,"100%","100%",result.info);
							count=result.info.length;
							var pagesize=10;//每组页数
							if(count>pagesize){
								var eachvar=pagesize;
							}else{
								var eachvar=count;
							}
							LODOP.PRINT_INIT("百世面单打印");
							LODOP.SET_PRINT_PAGESIZE(1,1000,1810,"");
							$(result.info).each(function(index,item){
							
								LODOP.NewPage();
								LODOP.ADD_PRINT_HTM(0,0,"100%","100%",item);
								// LODOP.ADD_PRINT_TEXT(0,0,100,20,index);//测试
								if(index+1==count){//已循环到最后一张，直接打印
									LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","百世面单打印"+(index+1));//为每个打印单独设置任务名
									LODOP.PREVIEW();
									getStatusValue('PRINT_STATUS_OK',document.getElementById('T1').value,document.getElementById('T2'))
								}
							})
						}
					},'json').error(function(data){
						var info=eval('('+data.responseText+')');
						layer.msg(info.message);
					});
	}
	function printBarBS(ids){//预览百世面单
		var LODOP;
		LODOP=getLodop();
					$.post(ajax_printbatBSUrl,{id:ids,preview:1},function(result){
						if (!result.status){
							layer.msg(result.message);
						}else{
							// LODOP.ADD_PRINT_HTM(0,0,"100%","100%",result.info);
							count=result.info.length;
							var pagesize=10;//每组页数
							if(count>pagesize){
								var eachvar=pagesize;
							}else{
								var eachvar=count;
							}
							LODOP.PRINT_INIT("百世面单打印");
							LODOP.SET_PRINT_PAGESIZE(1,1000,1810,"");
							$(result.info).each(function(index,item){
							
								LODOP.NewPage();
								LODOP.ADD_PRINT_HTM(0,0,"100%","100%",item);
								// LODOP.ADD_PRINT_TEXT(0,0,100,20,index);//测试
								if(index+1==count){//已循环到最后一张，直接打印
									LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","百世面单打印"+(index+1));//为每个打印单独设置任务名
									LODOP.PREVIEW();
									getStatusValue('PRINT_STATUS_OK',document.getElementById('T1').value,document.getElementById('T2'))
								}
							})
						}
					},'json').error(function(data){
						var info=eval('('+data.responseText+')');
						layer.msg(info.message);
					});
	}
	function printBarZTO(ids){//预览中通面单
		var LODOP;
		LODOP=getLodop();
					$.post(ajax_printbatZTOUrl,{id:ids,preview:1},function(result){
						if (!result.status){
							layer.msg(result.message);
						}else{
							// LODOP.ADD_PRINT_HTM(0,0,"100%","100%",result.info);
							count=result.info.length;
							var pagesize=10;//每组页数
							if(count>pagesize){
								var eachvar=pagesize;
							}else{
								var eachvar=count;
							}
							LODOP.PRINT_INIT("中通面单打印");
							LODOP.SET_PRINT_PAGESIZE(1,1000,1810,"");
							$(result.info).each(function(index,item){
							
								LODOP.NewPage();
								LODOP.ADD_PRINT_HTM(0,0,"100%","100%",item);
								// LODOP.ADD_PRINT_TEXT(0,0,100,20,index);//测试
								if(index+1==count){//已循环到最后一张，直接打印
									LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","中通面单打印"+(index+1));//为每个打印单独设置任务名
									LODOP.PREVIEW();
									getStatusValue('PRINT_STATUS_OK',document.getElementById('T1').value,document.getElementById('T2'))
								}
							})
						}
					},'json').error(function(data){
						var info=eval('('+data.responseText+')');
						layer.msg(info.message);
					});
	}
	function printBarSF(ids){//预览顺丰面单
		var LODOP;
		LODOP=getLodop();
					$.post(ajax_printbatSFUrl,{id:ids,preview:1},function(result){
						if (!result.status){
							layer.msg(result.message);
						}else{
							// LODOP.ADD_PRINT_HTM(0,0,"100%","100%",result.info);
							count=result.info.length;
							var pagesize=10;//每组页数
							if(count>pagesize){
								var eachvar=pagesize;
							}else{
								var eachvar=count;
							}
							LODOP.PRINT_INIT("顺丰面单打印");
							LODOP.SET_PRINT_PAGESIZE(1,1000,1540,"");
							$(result.info).each(function(index,item){
							
								LODOP.NewPage();
								LODOP.ADD_PRINT_HTM(0,0,"100%","100%",item);
								// LODOP.ADD_PRINT_TEXT(0,0,100,20,index);//测试
								if(index+1==count){//已循环到最后一张，直接打印
									LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","顺丰面单打印"+(index+1));//为每个打印单独设置任务名
									LODOP.PREVIEW();
									getStatusValue('PRINT_STATUS_OK',document.getElementById('T1').value,document.getElementById('T2'))
								}
							})
						}
					},'json').error(function(data){
						var info=eval('('+data.responseText+')');
						layer.msg(info.message);
					});
	}
	function goprintBSE(ids){//立即打印百世英文面单
		var LODOP;
		LODOP=getLodop();
		
		var text='确定打印吗！';
        	layer.confirm(text,{
				  btn: ['确定','取消'] //按钮
				},function(r){
                if(r){
					$.post(ajax_printbatBSEUrl,{id:ids},function(result){
						// console.log(result);
						// return false;
						if (!result.status){
							layer.msg(result.message);
						}else{
							// LODOP.ADD_PRINT_HTM(0,0,"100%","100%",result.info);
							count=result.info.length;
							// alert(count);
							var pagesize=10;//每组页数
							if(count>pagesize){
								var eachvar=pagesize;
							}else{
								var eachvar=count;
							}
							var printer_value;//打印机返回值
							$(result.info).each(function(index,item){
								// console.log(item);
								// return false;
								if(index%eachvar==0){
									// alert(index+1==count);
									LODOP.PRINT_INIT("百世面单打印");
									LODOP.SET_PRINT_PAGESIZE(1,1000,1810,"");
									LODOP.NewPage();
									LODOP.ADD_PRINT_HTM(0,0,"100%","100%",item);
									// LODOP.ADD_PRINT_TEXT(0,0,100,20,index);//测试
									if(index+1==count){//已循环到最后一张，直接打印
										// alert(123);
										LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","百世面单打印"+(index+1));//为每个打印单独设置任务名
										// LODOP.SET_PRINT_MODE("CATCH_PRINT_STATUS",true);
										// if (LODOP.CVERSION) {
											// LODOP.On_Return=function(TaskID,Value){
												// printer_value=Value;//获得打印机id返回值
												// if (LODOP.CVERSION) LODOP.On_Return=function(TaskID,Value){
													// alert(Value);
												// };//获得打印机打印任务状态返回值
												// var strResult=LODOP.GET_VALUE('PRINT_STATUS_OK',printer_value);
												// if (!LODOP.CVERSION) return strResult; else return "";
											// };
											// LODOP.PRINT();
											// return;
										// } else printer_value=LODOP.PRINT();
										LODOP.PRINT();
									}
								}else{
									LODOP.NewPage();
									LODOP.ADD_PRINT_HTM(0,0,"100%","100%",item);
									
									if(index+1==count){//已循环到最后一张，直接打印
										LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","百世面单打印"+(index+1));
										LODOP.PRINT();
									}else{
										if((index+1)%eachvar==0){//当前组的最后一张，可以打印
											LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","百世面单打印"+(index+1));
											LODOP.PRINT();
										}
									}
								}
								parent.window.location.href =parent.window.location.href;
							})
						}
					},'json').error(function(data){
						var info=eval('('+data.responseText+')');
						layer.msg(info.message);
					});
                }
        	});
	}
	function goprintBS(ids){//立即打印百世面单
		var LODOP;
		LODOP=getLodop();
		
		var text='确定打印吗！';
        	layer.confirm(text,{
				  btn: ['确定','取消'] //按钮
				},function(r){
                if(r){
					$.post(ajax_printbatBSUrl,{id:ids},function(result){
						// console.log(result);
						// return false;
						if (!result.status){
							layer.msg(result.message);
						}else{
							// LODOP.ADD_PRINT_HTM(0,0,"100%","100%",result.info);
							count=result.info.length;
							// alert(count);
							var pagesize=10;//每组页数
							if(count>pagesize){
								var eachvar=pagesize;
							}else{
								var eachvar=count;
							}
							var printer_value;//打印机返回值
							$(result.info).each(function(index,item){
								// console.log(item);
								// return false;
								if(index%eachvar==0){
									// alert(index+1==count);
									LODOP.PRINT_INIT("百世面单打印");
									LODOP.SET_PRINT_PAGESIZE(1,1000,1810,"");
									LODOP.NewPage();
									LODOP.ADD_PRINT_HTM(0,0,"100%","100%",item);
									// LODOP.ADD_PRINT_TEXT(0,0,100,20,index);//测试
									if(index+1==count){//已循环到最后一张，直接打印
										// alert(123);
										LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","百世面单打印"+(index+1));//为每个打印单独设置任务名
										// LODOP.SET_PRINT_MODE("CATCH_PRINT_STATUS",true);
										// if (LODOP.CVERSION) {
											// LODOP.On_Return=function(TaskID,Value){
												// printer_value=Value;//获得打印机id返回值
												// if (LODOP.CVERSION) LODOP.On_Return=function(TaskID,Value){
													// alert(Value);
												// };//获得打印机打印任务状态返回值
												// var strResult=LODOP.GET_VALUE('PRINT_STATUS_OK',printer_value);
												// if (!LODOP.CVERSION) return strResult; else return "";
											// };
											// LODOP.PRINT();
											// return;
										// } else printer_value=LODOP.PRINT();
										LODOP.PRINT();
									}
								}else{
									LODOP.NewPage();
									LODOP.ADD_PRINT_HTM(0,0,"100%","100%",item);
									
									if(index+1==count){//已循环到最后一张，直接打印
										LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","百世面单打印"+(index+1));
										LODOP.PRINT();
									}else{
										if((index+1)%eachvar==0){//当前组的最后一张，可以打印
											LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","百世面单打印"+(index+1));
											LODOP.PRINT();
										}
									}
								}
								parent.window.location.href =parent.window.location.href;
								
							})
						}
					},'json').error(function(data){
						var info=eval('('+data.responseText+')');
						layer.msg(info.message);
					});
                }
        	});
	}
	function goprintZTO(ids){//立即打印中通面单
		var LODOP;
		LODOP=getLodop();
		var text='确定打印吗！';
        	layer.confirm(text,{
				  btn: ['确定','取消'] //按钮
				},function(r){
                if(r){
					$.post(ajax_printbatZTOUrl,{id:ids},function(result){
						// console.log(result);
						// return false;
						if (!result.status){
							layer.msg(result.message);
						}else{
							// LODOP.ADD_PRINT_HTM(0,0,"100%","100%",result.info);
							count=result.info.length;
							// alert(count);
							var pagesize=10;//每组页数
							if(count>pagesize){
								var eachvar=pagesize;
							}else{
								var eachvar=count;
							}
							var printer_value;//打印机返回值
							$(result.info).each(function(index,item){
								// console.log(item);
								// return false;
								if(index%eachvar==0){
									// alert(index+1==count);
									LODOP.PRINT_INIT("百世面单打印");
									LODOP.SET_PRINT_PAGESIZE(1,1000,1810,"");
									LODOP.NewPage();
									LODOP.ADD_PRINT_HTM(0,0,"100%","100%",item);
									// LODOP.ADD_PRINT_TEXT(0,0,100,20,index);//测试
									if(index+1==count){//已循环到最后一张，直接打印
										// alert(123);
										LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","百世面单打印"+(index+1));//为每个打印单独设置任务名
										// LODOP.SET_PRINT_MODE("CATCH_PRINT_STATUS",true);
										// if (LODOP.CVERSION) {
											// LODOP.On_Return=function(TaskID,Value){
												// printer_value=Value;//获得打印机id返回值
												// if (LODOP.CVERSION) LODOP.On_Return=function(TaskID,Value){
													// alert(Value);
												// };//获得打印机打印任务状态返回值
												// var strResult=LODOP.GET_VALUE('PRINT_STATUS_OK',printer_value);
												// if (!LODOP.CVERSION) return strResult; else return "";
											// };
											// LODOP.PRINT();
											// return;
										// } else printer_value=LODOP.PRINT();
										LODOP.PRINT();
									}
								}else{
									LODOP.NewPage();
									LODOP.ADD_PRINT_HTM(0,0,"100%","100%",item);
									
									if(index+1==count){//已循环到最后一张，直接打印
										LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","百世面单打印"+(index+1));
										LODOP.PRINT();
									}else{
										if((index+1)%eachvar==0){//当前组的最后一张，可以打印
											LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","百世面单打印"+(index+1));
											LODOP.PRINT();
										}
									}
								}
								parent.window.location.href =parent.window.location.href;
								
							})
						}
					},'json').error(function(data){
						var info=eval('('+data.responseText+')');
						layer.msg(info.message);
					});
                }
        	});
	}
	function goprint(ids){//立即打印顺丰面单
		var LODOP;
		LODOP=getLodop();
		var text='确定打印吗！';
        	layer.confirm(text,{
				  btn: ['确定','取消'] //按钮
				},function(r){
                if(r){
					$.post(ajax_printbatSFUrl,{id:ids},function(result){
						// console.log(result);
						// return false;
						if (!result.status){
							layer.msg(result.message);
						}else{
							// LODOP.ADD_PRINT_HTM(0,0,"100%","100%",result.info);
							count=result.info.length;
							// alert(count);
							var pagesize=10;//每组页数
							if(count>pagesize){
								var eachvar=pagesize;
							}else{
								var eachvar=count;
							}
							var printer_value;//打印机返回值
							$(result.info).each(function(index,item){
								// console.log(item);
								// return false;
								if(index%eachvar==0){
									// alert(index+1==count);
									LODOP.PRINT_INIT("顺丰面单打印");
									LODOP.SET_PRINT_PAGESIZE(1,1000,1540,"");
									LODOP.NewPage();
									LODOP.ADD_PRINT_HTM(0,0,"100%","100%",item);
									// LODOP.ADD_PRINT_TEXT(0,0,100,20,index);//测试
									if(index+1==count){//已循环到最后一张，直接打印
										// alert(123);
										LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","顺丰面单打印"+(index+1));//为每个打印单独设置任务名
										// LODOP.SET_PRINT_MODE("CATCH_PRINT_STATUS",true);
										// if (LODOP.CVERSION) {
											// LODOP.On_Return=function(TaskID,Value){
												// printer_value=Value;//获得打印机id返回值
												// if (LODOP.CVERSION) LODOP.On_Return=function(TaskID,Value){
													// alert(Value);
												// };//获得打印机打印任务状态返回值
												// var strResult=LODOP.GET_VALUE('PRINT_STATUS_OK',printer_value);
												// if (!LODOP.CVERSION) return strResult; else return "";
											// };
											// LODOP.PRINT();
											// return;
										// } else printer_value=LODOP.PRINT();
										LODOP.PRINT();
									}
								}else{
									LODOP.NewPage();
									LODOP.ADD_PRINT_HTM(0,0,"100%","100%",item);
									
									if(index+1==count){//已循环到最后一张，直接打印
										LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","顺丰面单打印"+(index+1));
										LODOP.PRINT();
									}else{
										if((index+1)%eachvar==0){//当前组的最后一张，可以打印
											LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME","顺丰面单打印"+(index+1));
											LODOP.PRINT();
										}
									}
								}
								parent.window.location.href =parent.window.location.href;
							})
						}
					},'json').error(function(data){
						var info=eval('('+data.responseText+')');
						layer.msg(info.message);
					});
                }
        	});
	}
</script>
 <include file="Public/footer" />
<include file="Public/footer_js" />
</body>
</html>